package com.ruoyi.dataPanel.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品退货对象 order_return
 *
 * @author ruoyi
 * @date 2024-12-17
 */
public class OrderReturn extends BaseEntity
{

    /** 退货唯一标识 */
    private Long returnId;

    /** 退货申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnApplyTime;

    /** 订单号 */
    @Excel(name = "订单号")
    private Long returnOrderId;

    /** 退货状态（1：同意 2：拒绝 3：等待） */
    @Excel(name = "退货状态", readConverterExp = "1=：同意,2=：拒绝,3=：等待")
    private Long returnState;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private Long returnUerId;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private BigDecimal returnPrice;

    /** 操作员 */
    @Excel(name = "操作员")
    private String returnOperatorName;

    /** 操作员账号 */
    @Excel(name = "操作员账号")
    private String returnOperatorNumber;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDealTime;

    /** 退货原因Id */
    @Excel(name = "退货原因Id")
    private Long returnReasonId;

    @Excel(name = "年")
    private int years;
    /** 订单总行数 */
    @Excel(name = "周")
    private int weeks;
    @Excel(name = "月")
    private int months;

    public OrderReturn() {
    }

    public OrderReturn(Long returnId, Date returnApplyTime, Long returnOrderId, Long returnState, Long returnUerId, BigDecimal returnPrice, String returnOperatorName, String returnOperatorNumber, Date returnDealTime, Long returnReasonId, int years, int weeks, int months) {
        this.returnId = returnId;
        this.returnApplyTime = returnApplyTime;
        this.returnOrderId = returnOrderId;
        this.returnState = returnState;
        this.returnUerId = returnUerId;
        this.returnPrice = returnPrice;
        this.returnOperatorName = returnOperatorName;
        this.returnOperatorNumber = returnOperatorNumber;
        this.returnDealTime = returnDealTime;
        this.returnReasonId = returnReasonId;
        this.years = years;
        this.weeks = weeks;
        this.months = months;
    }

    /**
     * 获取
     * @return returnId
     */
    public Long getReturnId() {
        return returnId;
    }

    /**
     * 设置
     * @param returnId
     */
    public void setReturnId(Long returnId) {
        this.returnId = returnId;
    }

    /**
     * 获取
     * @return returnApplyTime
     */
    public Date getReturnApplyTime() {
        return returnApplyTime;
    }

    /**
     * 设置
     * @param returnApplyTime
     */
    public void setReturnApplyTime(Date returnApplyTime) {
        this.returnApplyTime = returnApplyTime;
    }

    /**
     * 获取
     * @return returnOrderId
     */
    public Long getReturnOrderId() {
        return returnOrderId;
    }

    /**
     * 设置
     * @param returnOrderId
     */
    public void setReturnOrderId(Long returnOrderId) {
        this.returnOrderId = returnOrderId;
    }

    /**
     * 获取
     * @return returnState
     */
    public Long getReturnState() {
        return returnState;
    }

    /**
     * 设置
     * @param returnState
     */
    public void setReturnState(Long returnState) {
        this.returnState = returnState;
    }

    /**
     * 获取
     * @return returnUerId
     */
    public Long getReturnUerId() {
        return returnUerId;
    }

    /**
     * 设置
     * @param returnUerId
     */
    public void setReturnUerId(Long returnUerId) {
        this.returnUerId = returnUerId;
    }

    /**
     * 获取
     * @return returnPrice
     */
    public BigDecimal getReturnPrice() {
        return returnPrice;
    }

    /**
     * 设置
     * @param returnPrice
     */
    public void setReturnPrice(BigDecimal returnPrice) {
        this.returnPrice = returnPrice;
    }

    /**
     * 获取
     * @return returnOperatorName
     */
    public String getReturnOperatorName() {
        return returnOperatorName;
    }

    /**
     * 设置
     * @param returnOperatorName
     */
    public void setReturnOperatorName(String returnOperatorName) {
        this.returnOperatorName = returnOperatorName;
    }

    /**
     * 获取
     * @return returnOperatorNumber
     */
    public String getReturnOperatorNumber() {
        return returnOperatorNumber;
    }

    /**
     * 设置
     * @param returnOperatorNumber
     */
    public void setReturnOperatorNumber(String returnOperatorNumber) {
        this.returnOperatorNumber = returnOperatorNumber;
    }

    /**
     * 获取
     * @return returnDealTime
     */
    public Date getReturnDealTime() {
        return returnDealTime;
    }

    /**
     * 设置
     * @param returnDealTime
     */
    public void setReturnDealTime(Date returnDealTime) {
        this.returnDealTime = returnDealTime;
    }

    /**
     * 获取
     * @return returnReasonId
     */
    public Long getReturnReasonId() {
        return returnReasonId;
    }

    /**
     * 设置
     * @param returnReasonId
     */
    public void setReturnReasonId(Long returnReasonId) {
        this.returnReasonId = returnReasonId;
    }

    /**
     * 获取
     * @return years
     */
    public int getYears() {
        return years;
    }

    /**
     * 设置
     * @param years
     */
    public void setYears(int years) {
        this.years = years;
    }

    /**
     * 获取
     * @return weeks
     */
    public int getWeeks() {
        return weeks;
    }

    /**
     * 设置
     * @param weeks
     */
    public void setWeeks(int weeks) {
        this.weeks = weeks;
    }

    /**
     * 获取
     * @return months
     */
    public int getMonths() {
        return months;
    }

    /**
     * 设置
     * @param months
     */
    public void setMonths(int months) {
        this.months = months;
    }

    public String toString() {
        return "OrderReturn{returnId = " + returnId + ", returnApplyTime = " + returnApplyTime + ", returnOrderId = " + returnOrderId + ", returnState = " + returnState + ", returnUerId = " + returnUerId + ", returnPrice = " + returnPrice + ", returnOperatorName = " + returnOperatorName + ", returnOperatorNumber = " + returnOperatorNumber + ", returnDealTime = " + returnDealTime + ", returnReasonId = " + returnReasonId + ", years = " + years + ", weeks = " + weeks + ", months = " + months + "}";
    }
}
